package com.hanlink.dsp.model;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * <pre>
 *
 *  BTDSP
 *
 *
 *  Copyright (C): 2015-11-10
 *
 * Description:
 *
 * Revision History
 * Date			  Author		Description
 * 2015-11-10        PeterVon       初始创建
 *
 * </pre>
 */
@Table(name = "_playlists")
public class Mp3Info {

    @Column(name = "_id", isId = true)
    private long id;
    @Column(name = "media_id")
    private long mediaId;

    @Column(name = "title")
    private String title;
    @Column(name = "artist")
    private String artist;
    @Column(name = "duration")
    private int duration;
    @Column(name = "size")
    private long size;
    @Column(name = "url")
    private String url;
    @Column(name = "playlistId")
    private int playListId;

    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setArtist(String artist) {
        this.artist = artist;
    }

    public String getArtist() {
        return artist;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getDuration() {
        return duration;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public long getSize() {
        return size;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public int getPlayListId() {
        return playListId;
    }

    public void setPlayListId(int playListId) {
        this.playListId = playListId;
    }

    @Override
    public String toString() {
        return "Mp3Info{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", artist='" + artist + '\'' +
                ", duration=" + duration +
                ", size=" + size +
                ", url='" + url + '\'' +
                '}';
    }

    public long getMediaId() {
        return mediaId;
    }

    public void setMediaId(long mediaId) {
        this.mediaId = mediaId;
    }
}
